package com.base.service.impl;

import com.base.mapper.voipmapper.TrafficCardApplicationMapper;
import com.base.po.voip.TrafficCardApplication;
import com.base.po.voip.TrafficCardApplicationExample;
import com.base.service.TrafficCardApplicationService;
import com.base.utils.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("trafficCardApplicationService")
public class TrafficCardApplicationServiceImpl implements TrafficCardApplicationService {
	
	@Autowired
	private TrafficCardApplicationMapper trafficCardApplicationMapper;


	@Override
	public int countByExample(TrafficCardApplicationExample example) {
		return trafficCardApplicationMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(TrafficCardApplicationExample example) {
		return trafficCardApplicationMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(String id) {
		return trafficCardApplicationMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(TrafficCardApplication record) {
		return trafficCardApplicationMapper.insert(record);
	}

	@Override
	public int insertSelective(TrafficCardApplication record) {
		return trafficCardApplicationMapper.insertSelective(record);
	}

	@Override
	public List<TrafficCardApplication> selectByExample(TrafficCardApplicationExample example) {
		return trafficCardApplicationMapper.selectByExample(example);
	}

	@Override
	public List<TrafficCardApplication> selectByAll(Page page, String parentId, String shopId, String phone, String timeFrom, String timeTo) {
		return trafficCardApplicationMapper.selectByAll(page, parentId, shopId, phone, timeFrom, timeTo);
	}

	@Override
	public TrafficCardApplication selectByPrimaryKey(String id) {
		return trafficCardApplicationMapper.selectByPrimaryKey(id);
	}

	@Override
	public TrafficCardApplication selectByPhone(String parentId, String phone) {
		return trafficCardApplicationMapper.selectByPhone(parentId, phone);
	}

	@Override
	public int updateByExampleSelective(TrafficCardApplication record, TrafficCardApplicationExample example) {
		return trafficCardApplicationMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(TrafficCardApplication record, TrafficCardApplicationExample example) {
		return trafficCardApplicationMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(TrafficCardApplication record) {
		return trafficCardApplicationMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(TrafficCardApplication record) {
		return trafficCardApplicationMapper.updateByPrimaryKey(record);
	}

	@Override
	public int countByAll(String parentId, String shopId, String phone, String timeFrom, String timeTo) {
		return trafficCardApplicationMapper.countByAll(parentId, shopId, phone, timeFrom, timeTo);
	}
}
